rsync -avz rsync://mirrors.ustc.edu.cn/debian/dists/jessie/ /home/mirror/debian/dists/jessie/
createrepo /home/mirror/debian/dists/jessie/

rsync -avz rsync://mirrors.ustc.edu.cn/debian/dists/jessie-updates/ /home/mirror/debian/dists/jessie-updates/
createrepo /home/mirror/debian/dists/jessie-updates/

rsync -avz rsync://mirrors.ustc.edu.cn/debian/dists/stretch/ /home/mirrors.ustc.edu.cn/debian/dists/stretch/ 
createrepo /home/mirrors.ustc.edu.cn/debian/dists/stretch/

rsync -avz rsync://mirrors.ustc.edu.cn/debian/dists/stretch-backports/ /home/mirrors.ustc.edu.cn/debian/dists/stretch-backports/ 
createrepo /home/mirrors.ustc.edu.cn/debian/dists/stretch-backports/

rsync -avz rsync://mirrors.ustc.edu.cn/debian/dists/stretch-proposed-updates/ /home/mirrors.ustc.edu.cn/debian/dists/stretch-proposed-updates/ 
createrepo /home/mirrors.ustc.edu.cn/debian/dists/stretch-proposed-updates/

echo "all done"

